home *** CD-ROM | disk | FTP | other *** search
- Path: news.lpr.carel.fi!usenet
- From: Ari Lukumies <aril@cmt.lpr.mail.carel.fi>
- Newsgroups: comp.lang.c
- Subject: Re: best way to make a program pause for a while
- Date: Wed, 10 Apr 1996 14:52:38 +0300
- Organization: Carelcomp Products
- Message-ID: <316BA106.5748@cmt.lpr.mail.carel.fi>
- References: <4kevtq$knj@pirates.cs.swt.edu>
- NNTP-Posting-Host: renoir.cclahti.carel.fi
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0 (WinNT; I)
-
- Mohammed Hasan wrote:
- >
- > i need to make my simple c program(to run in unix env)
- > wait for a while before it terminates.
- > what would be the best way to accomplish this?
- > right now, i am using the pause() function, but that is
- > not very efficient as i need to send a signal to it to
- > resume the execution(and eventually terminate).
- > any help/idea on this would be highly appreciated.
- > thanks.
- >
-
- Use sleep.
-
- Later,
- AriL
- --
- All my opinions are mine and mine alone.
-